package com.example.oj.mapper;

import com.example.oj.entity.Competition;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 28651
* @description 针对表【competition】的数据库操作Mapper
* @createDate 2024-03-18 20:43:01
* @Entity com.example.oj.entity.Competition
*/
@Mapper
public interface CompetitionMapper extends BaseMapper<Competition> {

    List<Competition> getCompetitionPage(@Param("name") String name,@Param("order") String order,@Param("sortField") String sortField);


  Integer updateCompetitionState(@Param("id") Long id,@Param("state") Integer state);
}




